import client from '../utils/client.js';

const commentAPI = {
    createComment: (body, slug) => client.post(`/comments/${slug}`, {comment:{body}}),
    getComments: (slug) => client.get(`/comments/${slug}`),
    deleteComment: (slug, commentId) => client.delete(`/comments/${slug}/${commentId}`),
}

export default commentAPI;